All Functions of Week 9

xlab

{GGPLOT2}

Label the x axis (ggplot)

mutate

{dplyr}

Modify/create a column in a data frame

geom_point

{GGPLOT2}

Generates a scatter plot

with

{base}

evaluate expression in the context of a data frame

c

{base}

Combine values/vectors into a vector

names

{base}

Retrieve names of a list/vector

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

recode

{dplyr}

Recode a variable

confint

{stats}

Calculate confidence Intervals for Model Parameters

summary

{base}

Obtain summary statistics or detailed regression output

rm

{base}

Remove objects

prop.table

{base}

Transform frequency table into table of proportions

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

ylab

{GGPLOT2}

Label the y axis (ggplot)

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

log

{base}

log (default base = e)

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

setwd

{base}

Set Working Directory

as.numeric

{base}

Coerce a vector to numeric

ggplot

{GGPLOT2}

Create a ggplot graph

levels

{base}

Get levels of a factor

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

lm

{base}

Fit a linear model

ifelse

{base}

Return a or b depending on the value of test

droplevels

{base}

Drop Unused Levels from Factors

relevel

{stats}

Reorder Levels of Factor

library

{base}

Load an R package

is.element

{base}

Check if a value is element of a vector

The end!